package com.qf.lanzhou.blog.api.pojo.vo;

import com.qf.lanzhou.blog.api.pojo.entity.Reply;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @author 是柠檬甜
 * @ClassName ReplyVo
 * @description 回复功能扩展实体类
 * @date 2020/12/18 17:37
 * @modifier 是柠檬甜
 * @date 2020-12-18 17:37
 * @Version V1.0
 */
public class ReplyVo extends Reply {
    private String replyCreatTimeStr;
    private Long replyId;
    private String replyContent;
    private String commentUserName;
    private Long articleId;
    private Long commentId;
    private String replyUserName;
    private Timestamp replyCreatTime;
    private static SimpleDateFormat sdf;

    @Override
    public String toString() {
        return "ReplyVo{" +
                "replyCreatTimeStr='" + replyCreatTimeStr + '\'' +
                ", replyId=" + replyId +
                ", replyContent='" + replyContent + '\'' +
                ", commentUserName='" + commentUserName + '\'' +
                ", articleId=" + articleId +
                ", commentId=" + commentId +
                ", replyUserName='" + replyUserName + '\'' +
                ", replyCreatTime=" + replyCreatTime +
                '}';
    }

    public String getReplyCreatTimeStr() {
        return replyCreatTimeStr;
    }

    public void setReplyCreatTimeStr(Timestamp replyCreatTime) {
        sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String replyCreatTimeStr = sdf.format(replyCreatTime);
        this.replyCreatTimeStr = replyCreatTimeStr;
    }

    @Override
    public Long getReplyId() {
        return replyId;
    }

    @Override
    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    @Override
    public String getReplyContent() {
        return replyContent;
    }

    @Override
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    @Override
    public String getCommentUserName() {
        return commentUserName;
    }

    @Override
    public void setCommentUserName(String commentUserName) {
        this.commentUserName = commentUserName;
    }

    @Override
    public Long getArticleId() {
        return articleId;
    }

    @Override
    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    @Override
    public Long getCommentId() {
        return commentId;
    }

    @Override
    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    @Override
    public String getReplyUserName() {
        return replyUserName;
    }

    @Override
    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    @Override
    public Timestamp getReplyCreatTime() {
        return replyCreatTime;
    }

    @Override
    public void setReplyCreatTime(Timestamp replyCreatTime) {
        this.replyCreatTime = replyCreatTime;
    }

}
